<?php
$idPhotosSup=$_GET['SupPic'];
$recupPic1=mysql_query("SELECT * FROM photosactu WHERE idPhotosActu='$idPhotosSup'") or die ("prob recup photos sup");
$dataSup6=mysql_fetch_assoc($recupPic1);
$NomImgSup=$dataSup6['NomImage'];
if(!empty($NomImgSup)){
	$ImgSup="../imagesActualites/".$NomImgSup;
	$ImgSmallSup="../imagesActualites/Big/".$NomImgSup;
 	unlink($ImgSup);
	unlink($ImgSmallSup);
}
$reqSup3=mysql_query("DELETE FROM `photosactu` WHERE idPhotosActu='$idPhotosSup'") or die ("prob sup photo table");

?>